import React from 'react'
import { Toast, NavBar } from 'react-vant'
import { useNavigate } from 'react-router-dom'
import { Cell } from 'react-vant'
function index() {
  const navigate = useNavigate()
  return (
    <div>
      <NavBar
        title='健康管理'
        onClickLeft={() => navigate(-1)}
        onClickRight={() => Toast('按钮')}
      />

        <Cell title='血压管理' isLink onClick={() => navigate('/blood')} />
        <Cell title='哮喘关爱' isLink onClick={() => navigate('/asthma')} />
        <Cell title='我的设备' isLink onClick={() => navigate('/device')}/>
    </div>
  )
}

export default index